package com.wuchao.reflect;

/**
 * @Author wuchao66
 * @Date 2023/10/31 9:25
 * @PackageName:com.wuchao.reflect
 * @ClassName: Student
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class Student {

    public Student() {

    }

    private Student(Integer id) {
        this.id = id;
    }

    public Student(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    private Integer id;

    private String name;

    public Integer age;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }
//    public String getName(){
//        return name;
//    }
    public void setName(String name) {
        this.name = name;
    }

    public String show() {
        return "我的名字是:" + name;
    }

    private void test() {
        System.out.println("test");
    }

    public void show(String name) {
        System.out.println("我的名字是:" + name);
    }
}